package com.haoan.index.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.haoan.common.annotation.Excel;
import com.haoan.index.base.BaseEntity;

/**
 * 轮播图对象 web_carousel
 *
 * @author autoGen
 * @date 2025-01-03
 */
@Data
@Schema(description = "轮播图")
@TableName("web_carousel")
public class Carousel extends BaseEntity implements Serializable
        {
private static final long serialVersionUID=1L;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "PK_web_carousel")
    @ApiParam(name = "id",value = "PK_web_carousel")
    private Long id;

    /** 轮播图 */
    @Schema(description = "轮播图-轮播图")
    @ApiParam(name = "carousel",value = "轮播图-轮播图")
    @Excel(name = "轮播图")
    @TableField(value = "`carousel`")
    private String carousel;

    /** 轮播图类型 */
    @Schema(description = "轮播图-轮播图类型")
    @ApiParam(name = "type",value = "轮播图-轮播图类型")
    @Excel(name = "轮播图类型")
    @TableField(value = "`type`")
    private String type;

    /** 是否启用（字典sys_yes_no） */
    @Schema(description = "轮播图-是否启用")
    @ApiParam(name = "status",value = "轮播图-是否启用")
    @Excel(name = "是否启用" , readConverterExp = "字=典sys_yes_no")
    @TableField(value = "`status`")
    private String status;

    /** 创建时间 */
    @TableField(value = "`create_time`")
    private Date createTime;

    /** 创建人 */
    @TableField(value = "`create_by`", fill = FieldFill.INSERT)
    private String createBy;

    /** 修改时间 */
    @TableField(value = "`update_time`")
    private Date updateTime;

    /** 修改人 */
    @TableField(value = "`update_by`", fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    /** 有效标志1有效0无效(无效数据任何地方不可见) */
    @Schema(description = "轮播图-有效标志1有效0无效(无效数据任何地方不可见)")
    @ApiParam(name = "valiFlag",value = "轮播图-有效标志1有效0无效(无效数据任何地方不可见)")
    @Excel(name = "有效标志1有效0无效(无效数据任何地方不可见)")
    @TableField(value = "`vali_flag`")
    private Integer valiFlag;


}

